import {
  CHANGETABBAR,
  ChangeTabBarAction,
} from "../actions/tabbarindex.action";

const initialState: number = 0;

export default function tabBarIndexReducer(
  state = initialState,
  action: ChangeTabBarAction
) {
  switch (action.type) {
    case CHANGETABBAR:
      return action.payload;
    default:
      return state;
  }
}
